import Vue from "vue";
import axios from "axios";
import App from "./App.vue";
import "./plugins/vant.js";
import { PullRefresh } from "vant";
import router from "./router";
import store from "./store";
import { Dialog } from "vant";
import Bscroll from "better-scroll";
import "./common/css/iconfont.css";
import { get, post } from "./plugins/axios";
axios.defaults.baseURL = "/api";
Vue.prototype.$post = post;
Vue.prototype.$get = get;
Vue.prototype.$axios = axios;
Vue.prototype.$bus = new Vue();
import { Toast } from "vant";
Vue.use(Toast);
// 全局注册
Vue.use(Dialog);
Vue.use(PullRefresh);
Vue.config.productionTip = false;
import flexible from "../public/flexible";
new Vue({
  flexible,
  router,
  store,
  Bscroll,
  render: (h) => h(App),
}).$mount("#app");
